from core.constant import *
from datetime import timedelta


IntervalMap = {
    Interval.SECOND: timedelta(seconds=1),
    Interval.SECOND2: timedelta(seconds=2),
    Interval.SECOND3: timedelta(seconds=3),
    Interval.SECOND4: timedelta(seconds=4),
    Interval.SECOND5: timedelta(seconds=5),
    Interval.SECOND6: timedelta(seconds=6),
    Interval.SECOND10: timedelta(seconds=10),
    Interval.SECOND12: timedelta(seconds=12),
    Interval.SECOND15: timedelta(seconds=15),
    Interval.SECOND20: timedelta(seconds=20),
    Interval.SECOND30: timedelta(seconds=30),
    Interval.MINUTE: timedelta(minutes=1),
    Interval.MINUTE2: timedelta(minutes=2),
    Interval.MINUTE3: timedelta(minutes=3),
    Interval.MINUTE4: timedelta(minutes=4),
    Interval.MINUTE5: timedelta(minutes=5),
    Interval.MINUTE6: timedelta(minutes=6),
    Interval.MINUTE10: timedelta(minutes=10),
    Interval.MINUTE12: timedelta(minutes=12),
    Interval.MINUTE15: timedelta(minutes=15),
    Interval.MINUTE20: timedelta(minutes=20),
    Interval.MINUTE30: timedelta(minutes=30),
    Interval.HOUR: timedelta(hours=1),
    Interval.HOUR2: timedelta(hours=2),
    Interval.HOUR3: timedelta(hours=3),
    Interval.HOUR4: timedelta(hours=4),
    Interval.HOUR6: timedelta(hours=6),
    Interval.HOUR8: timedelta(hours=8),
    Interval.HOUR12: timedelta(hours=12),
    Interval.DAILY: timedelta(hours=24)
}

DirectionMap = {
    Direction.SHORT: "空",
    Direction.MIDDLE: "中",
    Direction.LONG: "多"
}

TradeTimeMap = {
    "股票": [],
    "期货": [],
    "数字货币": [],
}

DataFolderDataCategoryMap = {
    DataFolder.MkLive: DataCategory.MkLive,
    DataFolder.MkFtLive: DataCategory.MkFtLive,
    DataFolder.MkFtSgLive: DataCategory.MkFtLive,
    DataFolder.Mk: DataCategory.Mk,
    DataFolder.MkFt: DataCategory.MkFt,
    DataFolder.MkFtSg: DataCategory.MkFtSg,
}



